package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.Article;
import com.briup.cms.bean.extend.ArticleExtend;
import com.briup.cms.bean.vo.ArticleParam;

import java.util.List;

public interface IArticleService {
    void saveOrUpdate(Article article);

    //文章审核
    void reviewArticle(Long id, String status);

    //批量删除
    void deleteInBatch(List<Long> ids);

    //查询指定文章[普通用户]
    ArticleExtend queryByIdWithComments(Long id);

    //分页+条件查询文章(含作者)
    IPage<ArticleExtend> query(ArticleParam articleParam);
}
